import request from '@/utils/request'

// 查询采购单备注表列表
export function listPurchaseorderremark(query) {
  return request({
    url: '/purchase/purchaseorderremark/list',
    method: 'get',
    params: query
  })
}

// 查询采购单备注表详细
export function getPurchaseorderremark(id) {
  return request({
    url: '/purchase/purchaseorderremark/' + id,
    method: 'get'
  })
}

// 新增采购单备注表
export function addPurchaseorderremark(data) {
  return request({
    url: '/purchase/purchaseorderremark',
    method: 'post',
    data: data
  })
}

// 修改采购单备注表
export function updatePurchaseorderremark(data) {
  return request({
    url: '/purchase/purchaseorderremark',
    method: 'put',
    data: data
  })
}

// 删除采购单备注表
export function delPurchaseorderremark(id) {
  return request({
    url: '/purchase/purchaseorderremark/' + id,
    method: 'delete'
  })
}
